import allure
from page_base.page_base import Base
from page_element.el_Roncoo import *
from utils.timer import sleep
import logging

class AddProdect(Base):
    def addproduct(self,bianma,prodectname):
        with allure.step('点击支付管理'):
            self.click(paypape.pay_manage)
        with allure.step('点击支付产品信息'):
            self.click(paypape.product_info)
        with allure.step('点击添加支付产品'):
            self.click(paypape.add_product)
        sleep(3)
        with allure.step(f'输入产品编号：{bianma}'):
            self.send_keys(paypape.bianma_inp,bianma)
        with allure.step(f'输入产品名称：{prodectname}'):
            self.send_keys(paypape.name_inp,prodectname)
        sleep(2)
        with allure.step('点击提交'):
            self.click(paypape.tj_btn)

